package bma.common.langutil.objectquery;

import java.util.Map;

public abstract class OQProviderSimple implements OQProvider {
	
	public abstract boolean isObjectType(String objectType);

	@Override
	public boolean loadObjects(String objectType, Map<Object, Object> pk2valMap) {
		if(!isObjectType(objectType))return false;
		for (Object obj : pk2valMap.keySet()) {
			Object r = loadObject(objectType, obj);
			if (r != null) {
				pk2valMap.put(obj, r);
			}
		}
		return true;
	}

}
